package fr.utbm.gi.in56;

import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.LinkedList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import fr.utbm.gi.in56.ads.AdsManager;
import fr.utbm.gi.in56.database.DatabaseServlet;
import fr.utbm.gi.in56.user.UserBean;
import fr.utbm.gi.in56.user.UserManager;
import fr.utbm.gi.in56.vehicle.BrandEntry;
import fr.utbm.gi.in56.vehicle.ModelEntry;
import fr.utbm.gi.in56.vehicle.VehicleManager;

/**
 * Servlet implementation class DebugServlet
 * 
 * @author Adrien Hoffer & Tarik Belabbas
 */
@WebServlet( "/DebugServlet" )
public class DebugServlet extends DatabaseServlet
{
	private static final long	serialVersionUID	= 1L;

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public DebugServlet()
	{
		super();
	}

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	@Override
	protected void doGet( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException, IOException
	{
		AdsManager am = new AdsManager( this.getConnection());
		am.getSellAdsPostedByUser( "Adrien" );
					
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	@Override
	protected void doPost( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException, IOException
	{
		
	}

}
